TreeGrid Gantt Chart Tutorial
8. Points
Marking points in chart with defined text as tooltip
-
The points represents movable marks on exact dates.
They are expected to use in math charts to display values from one or more source columns.
To just mark some date in chart by icon and information use GanttFlags instead of GanttPoints.
Point icon is centered directly to its date.
-
The points are defined by
GanttPoints
attribute in possible four ways:
-
Comma separated list of column names where are the individual values stored, for example GGanttPoints=’A,B,C’ A=’1/1/2000’ B=’2/1/2000’ C=’4/2/2000’.
Users cannot add more points than the column count, but can change the source columns values, delete points and add new points up to source column count.
-
Column name where are the column names stored, for example GGanttPoints=’X’ X=’A,B,C’ A=’1/1/2000’ B=’2/1/2000’ C=’4/2/2000’.
Users can change the source column list and also can change the source columns values, delete points and add new points up to actual source column count.
-
Direct list of values, comma or semicolon separated, for example GGanttPoints=’1/1/2000;2/1/2000;4/2/2000’.
It is not changeable by users.
-
Column name where are the direct values stored, for example GGanttPoints=’X’ X=’1/1/2000;2/1/2000;4/2/2000’.
It has not limited count of the points added by users. Users can freely add, delete and move the points.
-
There are eight predefined icons for the points, every next point in the cell will have next icon from the list.
From ninth point the icons are cycled from beginning.
It is possible to show custom icons for the points or change the assigning order of predefined icons by attribute GanttPointsIcons
.
The GanttPointsIcons contains semicolon separated list of the icon urls (relative to the actual page) or number 1-8 for predefined icon. The icons are assigned to the points in that order.
-
There can be more points on the same date, the next point is shifted for GanttPointsShift pixels right to not completely hide the previous point.
-
Attribute
GanttPointsEdit
specifies if the individual points can be moved or deleted. In the order they are defined in GanttPoints.
To not edit any point remove rather Points keyword from GanttEdit.
-
Tooltip for the points can be formatted by
GanttPointsTip
to show specific information for the point like its date, index and source column name.